<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="../js/jquery.js"></script>
<script>
	$(document).ready(function(){
		$("button").click(function(){
			$("p").css("color","red")
				.slideUp(500)
				.slideDown(500);
		});
	});
</script>
<title>Chaining</title>
</head>
<body>
<p>Animation</p>
<button>Click here</button>
</body>
</html>